package com.university.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Companycomplain entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "companycomplain", catalog = "university")

public class Companycomplain implements java.io.Serializable {

	// Fields

	private Integer companyComplainId;
	private Company company;
	private Student student;
	private String companyComplainReason;
	private String companyComplainResult;
	private Boolean companyComplainEnable;

	// Constructors

	/** default constructor */
	public Companycomplain() {
	}

	@Override
	public String toString() {
		return "Companycomplain [companyComplainId=" + companyComplainId + ", company=" + company + ", student="
				+ student + ", companyComplainReason=" + companyComplainReason + ", companyComplainResult="
				+ companyComplainResult + ", companyComplainEnable=" + companyComplainEnable + "]";
	}

	/** full constructor */
	public Companycomplain(Company company, Student student, String companyComplainReason, String companyComplainResult,
			Boolean companyComplainEnable) {
		this.company = company;
		this.student = student;
		this.companyComplainReason = companyComplainReason;
		this.companyComplainResult = companyComplainResult;
		this.companyComplainEnable = companyComplainEnable;
	}

	// Property accessors
	@Id
	@GeneratedValue

	@Column(name = "companyComplain_id", unique = true, nullable = false)

	public Integer getCompanyComplainId() {
		return this.companyComplainId;
	}

	public void setCompanyComplainId(Integer companyComplainId) {
		this.companyComplainId = companyComplainId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "companyComplain_companyId")

	public Company getCompany() {
		return this.company;
	}

	public void setCompany(Company company) {
		this.company = company;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "companyComplain_studentId")

	public Student getStudent() {
		return this.student;
	}

	public void setStudent(Student student) {
		this.student = student;
	}

	@Column(name = "companyComplain_reason", length = 200)

	public String getCompanyComplainReason() {
		return this.companyComplainReason;
	}

	public void setCompanyComplainReason(String companyComplainReason) {
		this.companyComplainReason = companyComplainReason;
	}

	@Column(name = "companyComplain_result", length = 200)

	public String getCompanyComplainResult() {
		return this.companyComplainResult;
	}

	public void setCompanyComplainResult(String companyComplainResult) {
		this.companyComplainResult = companyComplainResult;
	}

	@Column(name = "companyComplain_enable", insertable = false)

	public Boolean getCompanyComplainEnable() {
		return this.companyComplainEnable;
	}

	public void setCompanyComplainEnable(Boolean companyComplainEnable) {
		this.companyComplainEnable = companyComplainEnable;
	}

}